package com.gitee.wsl.mathematics.matrix

import com.gitee.wsl.mathematics.matrix.mat4.ext.mul
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlin.test.Test
import kotlin.time.measureTime

class AsyncTest {

    @Test
    fun testAsync(){

        val a = measureTime {
            tempMat4 * tempMat4 * tempMat4 * tempMat4
        }

        val b = measureTime {
            runBlocking {
                mul(mul(mul(tempMat4,tempMat4),tempMat4),tempMat4)
            }
        }

        println(" a :$a, b:$b")
    }
}